Registers the provided callback for notifications. A callback may only be registered once.
This is a public method.
public object Register(Action<object> callback)
Returns an object as an ID that can be used to wait for the provided callback to complete during dispatches or unregister the provided callback.
null
.